<?php
header('Content-Type: text/html; charset=utf-8');

date_default_timezone_set('PRC');

//Define the framework base path.
defined('CORE_PATH') or define('CORE_PATH', dirname(dirname(__DIR__)) . '/swolf/');

//Define the application base path.
defined('APP_PATH') or define('APP_PATH', dirname(__DIR__) . '/');

//Define the common config path.
defined('CCONF_PATH') or define('CCONF_PATH', dirname(dirname(__DIR__)) . '/common/config/');

defined('SW_DEBUG') or define('SW_DEBUG', true);

// echo BASE_PATH;exit();

require CORE_PATH.'Swolf.php';
// require BASE_PATH.'base/UrlManager.php';
require CORE_PATH.'Application.php';

$_config = array(
	require CCONF_PATH . 'main.php',
	require CCONF_PATH . 'db.php',
	require CCONF_PATH . 'tables.php',

	require APP_PATH . 'config/main.php',
);

$_app = new Application($_config);
$_app->run();


